package org.surthi.app.bank.web.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.web.servlet.view.document.AbstractPdfView;

import com.lowagie.text.Document;
import com.lowagie.text.Paragraph;
import com.lowagie.text.pdf.PdfWriter;


public class PDFViewController extends AbstractPdfView {

	//private static final Logger logger = Logger.getLogger(PDFViewController.class);
	@Override
	protected void buildPdfDocument(Map model, Document document, PdfWriter writer,
			HttpServletRequest request, HttpServletResponse response) throws Exception {
		// TODO Auto-generated method stub
		//		logger.info("hello, world.");
		System.out.println("hello, world.");
		document.add(new Paragraph("Hello, World. Welcome to pdf converter program."));
	}	
}
